home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / MPW / gzip 1.2.2 / Makefile < prev    next >
Encoding:
Makefile  |  1993-07-11  |  3.4 KB  |  108 lines  |  [TEXT/MPS ]

  1. # Makefile for gzip (GNU zip)    -*- Indented-Text -*-
  2. #
  3. # This program is free software; you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation; either version 2, or (at your option)
  6. # any later version.
  7. #
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. # GNU General Public License for more details.
  12. #
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16.  
  17. srcdir =        :
  18. bindir =        "{MPW}"Tools:
  19. scriptdir =        "{MPW}"Scripts:
  20. #mandir =        {MPW}man:man1:
  21.  
  22. Version =        1
  23. Revision =        2
  24. Bugfix =        2
  25. VerString1 =    "for MPW 3.2"
  26. VerString2 =    "^ © 1993 Free Software Foundation"
  27.  
  28. CDefs =            -d GNU_STANDARD
  29. Symbols =        #-sym on
  30. CPU =            -mc68020
  31. FPU =            #-mc68881 #-elems881
  32. CSeg =            -model far
  33. ANSIC =            -r -d __STDC__
  34. Optimize =        -opt full
  35. COptions =        {CPU} {FPU} {CSeg} {Optimize} {Symbols} {ANSIC} {CDefs}
  36.  
  37. AOptions =        -case obj
  38.  
  39. LinkCodeSize =    -model far
  40. SegOptions =    -sg Main=STDCLIB,STDIO,INTENV,SADEV,SANELIB,CSANELib,ErrMgr,cextras ∂
  41.                 -ra Main=resLocked,resPreload
  42. ObjType =        -t MPST -c 'MPS '
  43. LinkOptions =    -d {ObjType} {LinkCodeSize} {SegOptions} {Symbols}
  44.  
  45. #Manuals =        zdiff.1 zgrep.1 znew.1 zforce.1 gzip.1
  46.  
  47. Resources =        gzip.r
  48.  
  49. Objects =        gzip.c.o zip.c.o deflate.c.o trees.c.o bits.c.o unzip.c.o ∂
  50.                 inflate.c.o util.c.o crypt.c.o lzw.c.o unlzw.c.o unpack.c.o ∂
  51.                 unlzh.c.o
  52.  
  53. Libs =            "{CLibraries}"StdCLib.o ∂
  54.                 "{Libraries}"Stubs.o ∂
  55.                 "{Libraries}"ToolLibs.o ∂
  56.                 "{Libraries}"Runtime.o ∂
  57.                 "{Libraries}"Interface.o ∂
  58.                 "{CLibraries}"cextras.o
  59.  
  60. #---------------------------------------------------------------------------
  61. # Main build rules
  62. #---------------------------------------------------------------------------
  63.  
  64. all    ƒ    gzip zcmp.mac zgrep.mac znew.mac zforce.mac
  65.  
  66. gzip    ƒƒ    Makefile {Objects} {Libs}
  67.     Link -o {Targ} {LinkOptions} {Libs} {Objects}
  68.  
  69. gzip    ƒƒ    Makefile {Resources}
  70.     Rez -append -o {Targ} {Resources}
  71.  
  72. gzip.c.o    ƒƒ    Makefile gzip.h tailor.h revision.h lzw.h
  73. zip.c.o    ƒƒ    Makefile gzip.h tailor.h crypt.h
  74. deflate.c.o    ƒƒ    Makefile gzip.h tailor.h
  75. trees.c.o    ƒƒ    Makefile gzip.h tailor.h
  76. bits.c.o    ƒƒ    Makefile gzip.h tailor.h crypt.h
  77. unzip.c.o    ƒƒ    Makefile gzip.h tailor.h crypt.h
  78. inflate.c.o    ƒƒ    Makefile gzip.h tailor.h
  79. util.c.o    ƒƒ    Makefile gzip.h tailor.h crypt.h
  80. crypt.c.o    ƒƒ    Makefile gzip.h tailor.h
  81. lzw.c.o    ƒƒ    Makefile gzip.h tailor.h
  82. unlzw.c.o    ƒƒ    Makefile gzip.h tailor.h revision.h lzw.h
  83. unpack.c.o    ƒƒ    Makefile gzip.h tailor.h
  84. unlzh.c.o    ƒƒ    Makefile gzip.h tailor.h
  85.  
  86. #---------------------------------------------------------------------------
  87. # Other build rules
  88. #---------------------------------------------------------------------------
  89.  
  90. clean    ƒ
  91.     Set Exit 0
  92.     Delete gzip
  93.     Delete ≈.o
  94.     Delete ≈.SYM
  95.     Set Exit 1
  96.  
  97. install    ƒ    all
  98.     Set Exit 0;
  99.     SetVersion -t vers -i 2 -stage release -sv {Version} -sr {Revision} -sb {Bugfix} -verstring {VerString1} gzip
  100.     SetVersion -t vers -i 1 -stage release -sv {Version} -sr {Revision} -sb {Bugfix} -verstring {VerString2} gzip
  101.     duplicate -y gzip {bindir}
  102.     duplicate -y zcmp.mac {scriptdir}zcmp
  103.     duplicate -y zgrep.mac {scriptdir}zgrep
  104.     duplicate -y znew.mac {scriptdir}znew
  105.     duplicate -y zforce.mac {scriptdir}zforce
  106. #    duplicate -y {Manuals} "{mandir}"
  107.     Set Exit 1;
  108.